package com.koma.mvpdemo.activity;

import android.app.Activity;
import android.os.Bundle;
import android.widget.TextView;

import com.koma.mvpdemo.R;

/**
 * Created by chengengsen on 2016/9/30.
 */
public class SecondActivity extends Activity{

    private TextView tv_username;
    private TextView tv_password;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_second);

        tv_username = (TextView) findViewById(R.id.tv_username);
        tv_password = (TextView) findViewById(R.id.tv_password);

        tv_username.setText(getIntent().getStringExtra("name"));
        tv_password.setText(getIntent().getStringExtra("password"));
    }
}
